--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Commit 250ea36e4c7f59555da059ea5833dbba07898a1e
Parents : 179d93e
Author : Ivan <ivan@quad4.io>
Signature : Signature validation error
Date : 2026-04-17T23:28:44-05:00
feat(tests): add new media fuzz and HTTP integration tests for backend media APIs
Changes
Diff
diff --git a/Taskfile.yml b/Taskfile.yml
index 8cfac30a..f475b1fc 100644
--- a/Taskfile.yml
+++ b/Taskfile.yml
@@ -195,6 +195,22 @@ tasks:
cmds:
- "{{.NPM}} run test:loadtime"
+ test:be:media-fuzz:
+ desc: Hypothesis fuzz tests for stickers, TGS/Lottie JSON, WebM, GIFs, pack exports
+ cmds:
+ - poetry run pytest tests/backend/test_media_fuzzing.py -q
+
+ test:be:media-http:
+ desc: aiohttp integration tests for /api/v1/stickers, sticker-packs, and /api/v1/gifs
+ cmds:
+ - poetry run pytest tests/backend/test_media_http_api.py -q
+
+ test:fuzz:all:
+ desc: Vitest fuzzing tag plus backend media Hypothesis fuzz
+ deps: [test:be:media-fuzz]
+ cmds:
+ - "{{.NPM}} run test:fuzz"
+
test:fe:cov:
desc: Run frontend tests with line coverage (Vitest v8)
cmds:
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────